package com.retail.lottery.colalottery.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
public enum NoticeTypeEnum {
    LOTTERY(1, "抽奖提醒"),
    RECALL(2, "召回"),
    QUESTION(3, "题库提醒"),
    ;

    @EnumValue
    @JsonValue
    private int type;

    private String desc;

    NoticeTypeEnum(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public Integer getType() {
        return this.type;
    }
}
